package com.thread.future;

import java.util.concurrent.Callable;

public class Real1Data implements Callable<String> {
	private String reaString;

	public Real1Data(String reaString) {
		super();
		this.reaString = reaString;
	}

	@Override
	public String call() throws Exception {
		StringBuffer sb = new StringBuffer();
		for (int i = 0; i < 10; i++) {
			sb.append(reaString);
			try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
			}
		}

		return sb.toString();
	}
}